package com.kfm.hotel.service;

import com.kfm.hotel.domain.SysMenu;
import com.kfm.hotel.domain.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.kfm.hotel.domain.UserRoleDTO;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Set;


/**
* @author 10854
* @description 针对表【sys_user】的数据库操作Service
* @createDate 2023-05-29 15:22:24
*/
public interface SysUserService extends IService<SysUser>, UserDetailsService {

    SysUser login(SysUser user);

    SysUser login(String username, String password);

    int saveSysUser(SysUser user);


    PageInfo<SysUser> list(SysUser user, Integer page, Integer limit);

    void existUsername(SysUser user);

    void setUserRole(UserRoleDTO userRoleDTO);

    Set<String> getPermission(Integer id);
}
